<?php
	/*
		可以写N个DB链接数据库的操作
	*/
	function db_connect($db_name)
	{
		$GLOBALS['link'] = mysql_connect(DB_HOST, DB_USER,DB_PW) or die('-1|连接数据库失败');
		mysql_select_db($db_name,$GLOBALS['link']) or die('-1|打开数据库失败');
		mysql_query("SET NAMES utf8");
		return $GLOBALS['link'];
	}

?>